package com.xidian.zhiancloud.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 废弃物入库管理
 * @author qzg
 */
@Data
@ExcelTarget("废弃物入库台账")
@TableName(value = "t_waste_storage")
public class WasteStorage {
    /**
     *   id
     */
    @ExcelIgnore()
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *   多租户id
     */
    @ExcelIgnore()
    private Long companyId;

    /**
     *   危废id
     */
    @ExcelIgnore()
    private Long wasteId;

    /**
     *   入库数量
     */
    @ExcelIgnore()
    private BigDecimal quantity;

    /**
     *   入库时间
     */
    @Excel(name = "入库日期",needMerge = true,orderNum = "9", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date storageTime;

    /**
     *   入库状态：0：待入库，1：已入库
     */
    @ExcelIgnore()
    private Integer state;

    /**
     *   联系人id
     */
    @ExcelIgnore()
    private Long contactId;

    /**
     *   联系人电话
     */
    @Excel(name = "联系电话",needMerge = true,orderNum = "5")
    private String contactNumber;

    /**
     *   类别id
     */
    @ExcelIgnore()
    private Long typeId;

    /**
     *   存放地
     */
    @Excel(name = "存放地",needMerge = true,orderNum = "7")
    private String storagePlace;

    /**
     *   包装方式
     */
    @Excel(name = "包装",needMerge = true,orderNum = "3")
    private String packing;

    /**
     *   主要来源
     */
    @Excel(name = "主要来源",needMerge = true,orderNum = "8")
    private String mainSources;

    /**
     *   来源品名
     */
    @ExcelIgnore()
    private String sourceName;

    /**
     *   管控措施
     */
    @ExcelIgnore()
    private String ctrlMeasures;

    /**
     *  入库编号
     */
    @Excel(name = "入库编号",needMerge = true,orderNum = "0")
    private String storageCode;

    /**
     * 入库人id
     */
    @ExcelIgnore()
    private Long storagePersonId;

}